package com.gecba.minio.properties;

import com.gecba.minio.enums.HttpSecure;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.minio")
@Data
public class MinIoProperties {

    /** 服务IP */
    private String host;

    /** 端口 */
    private Integer port;

    /** 请求类型  http or  https */
    private HttpSecure secure = HttpSecure.HTTP;

    /** 用户名 */
    private String accessKey;

    /** 用户密钥 */
    private String secretKey;

    /** bucket */
    private String bucket;
}
